#!/usr/bin/env bash
# encoding: utf-8.0

set -o errexit

function print_list()
{
    while read LINE
    do
        local uuid=`uuidgen`
        echo '{"defKey":"'${LINE%,*}'","defName":"'${LINE#*,}'","sort":"","intro":"","id":"'${uuid}'","item":[]},'
    done < $1
}


print_list $1